package com.prs.crm.domain.oa;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.prs.crm.domain.BaseEntity;

/**
 * OA综合行政车辆维修及保养
 * @author zhoupeng 2012-4-16
 *
 */
@Entity
@Table(name="oa_vehicleRepairAndMaintenance")
public class VehicleRepairAndMaintenance extends BaseEntity{
private static final long serialVersionUID = 1L;
	
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private Integer id;
	/**
	 * 所属车辆
	 */
	@ManyToOne
	private Vehicle vehicle;
	/**
	 * 经办人
	 */
	private String attn;
	/**
	 * 修配厂
	 */
	private String factory;
	/**
	 * 联系电话
	 */
	private String phone;
	/**
	 * 费用
	 */
	private String price;
	/**
	 * 维修日期
	 */
	private Date repairTime;
	/**
	 * 里程数
	 */
	private String mileage;
	/**
	 * 下次保养时间
	 */
	private Date nextTime;
	/**
	 * 备注
	 */
	private String remark;
	/**
	 * 类型：维修，保养
	 */
	private String state;
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Vehicle getVehicle() {
		return vehicle;
	}
	public void setVehicle(Vehicle vehicle) {
		this.vehicle = vehicle;
	}
	public String getAttn() {
		return attn;
	}
	public void setAttn(String attn) {
		this.attn = attn;
	}
	public String getFactory() {
		return factory;
	}
	public void setFactory(String factory) {
		this.factory = factory;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getPrice() {
		return price;
	}
	public void setPrice(String price) {
		this.price = price;
	}
	public Date getRepairTime() {
		return repairTime;
	}
	public void setRepairTime(Date repairTime) {
		this.repairTime = repairTime;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public String getState() {
		return state;
	}
	public void setState(String state) {
		this.state = state;
	}
	public String getMileage() {
		return mileage;
	}
	public void setMileage(String mileage) {
		this.mileage = mileage;
	}
	public Date getNextTime() {
		return nextTime;
	}
	public void setNextTime(Date nextTime) {
		this.nextTime = nextTime;
	}
	
}
